CREATE TABLE [dbo].[TblDehestan]
(
[ID] [uniqueidentifier] NOT NULL,
[BakhshId] [uniqueidentifier] NULL,
[Name] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[TblDehestan] ADD CONSTRAINT [PK_TblDehestan] PRIMARY KEY CLUSTERED  ([ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TblDehestan] ADD CONSTRAINT [FK_TblDehestan_TblBakhsh] FOREIGN KEY ([BakhshId]) REFERENCES [dbo].[TblBakhsh] ([ID]) ON DELETE CASCADE ON UPDATE CASCADE
GO
